import QtQuick 2.5
import QtQuick.Controls 2.1
import ".."

RadioButton
{
    id: myBigRadioButton
    height: 140
    width: 120
    property alias source: icon.source
    property alias name: textExplain.text
    indicator: Rectangle
    {
        anchors.fill: parent
        color: parent.checked ? "white" : Common.colorTransParent
        radius: 10
        Image
        {
            id: icon
            anchors.top: parent.top
            anchors.topMargin: 20
            anchors.horizontalCenter: parent.horizontalCenter
        }
        Text
        {
            id: textExplain
            font.family: Common.fontMain
            font.pixelSize: 18
            color: Common.colorTextBlack
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 20
            anchors.horizontalCenter: parent.horizontalCenter
        }
    }
}
